<template>
    <Select :style="styleList" @on-change="changeStatus">
        <Option v-for="item in taskStatusData" :value="item.key" :key="item.key">{{item.name}}</Option>
    </Select>
</template>
<script>
    export default {
        name: 'taskStatus',
        props: {
            styleList: String
        },
        data() {
            return {
                taskStatusData: this.Func.getAllTaskStatus()
            }
        },
        methods: {
            changeStatus(currentOption) {
                this.$emit('getTaskStatus', currentOption)
            }
        }
    }
</script>